﻿<UserControl x:Class="TestRunner.Views.ToolbarControlView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:windowsToolbar="clr-namespace:Windows.Toolbar.Controls;assembly=Windows.Toolbar"             
    mc:Ignorable="d">
    <windowsToolbar:ToolbarGroup Footer="Control">
        <StackPanel VerticalAlignment="Center">
            <!-- Undo Command Button -->
            <windowsToolbar:ToolbarButton Command="{Binding Undo}" HorizontalAlignment="Left" Click="ToolbarButton_Click">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/TestRunner;component/Resources/Undo.png" />
                    <TextBlock Foreground="Black" Text="Undo" Margin="2,0,0,0" />
                </StackPanel>
            </windowsToolbar:ToolbarButton>

            <!-- Redo Command Button -->
            <windowsToolbar:ToolbarButton Command="{Binding Redo}" HorizontalAlignment="Left" Click="ToolbarButton_Click">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/TestRunner;component/Resources/Redo.png" />
                    <TextBlock Foreground="Black" Text="Redo" Margin="2,0,0,0" />
                </StackPanel>
            </windowsToolbar:ToolbarButton>
        </StackPanel>
    </windowsToolbar:ToolbarGroup>
</UserControl>
